package com.ctk.wifi.a.bonjour;

import java.net.InetAddress;

public class Printer {

	private String name;
	private InetAddress address;

	public Printer(String name, InetAddress address) {
		this.name = name;
		this.address = address;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public InetAddress getAddress() {
		return address;
	}

	public void setAddress(InetAddress address) {
		this.address = address;
	}

	@Override
	public boolean equals(Object o) {

		if (o instanceof Printer) {
			Printer printer = (Printer) o;
			if (printer.name.equals(this.name))
				return true;
		}
		return false;
	}
}
